package keke;

import java.math.BigInteger;
import java.util.*;

public class Main4 {
	public static void main(String[] args) 
	{
 		Scanner in = new Scanner(System.in);
 		BigInteger sum=new BigInteger("0");
 	    String str=null;
 	    while(in.hasNext())
 	    {
 	    	str=in.next();
 	    	if(str.equals("e")||str.equals("E"))
 	    		break;
 	    	else
 	    	{
 	    		BigInteger b=new BigInteger(str);
 	    		sum=sum.add(b);
 	    	} 
 	    }
 	    System.out.println(sum);
 	    in.close();
	}
}
